print("_______多函数替换_______")
xlua.hotfix(CS.HotfixMain,
{
    Update = function (self)
        print(os.time())
    end,
    Add = function (self,a,b)
        return a+b+3
    end,
    Speak = function (a)
        CS.UnityEngine.Debug.Log('Speak:'..a)
    end
})

--构造函数
xlua.hotfix(CS.HotfixTest,{
    [".ctor"] = function (self,a)
        self.version=100;
    end,
    V = function (self,str)
        CS.UnityEngine.Debug.Log('LuaHotfixV:'..str..self.version)
    end,
    Finalize = function ()
        print('西贡偶')
    end
})